package com.example.stopwatch;

import org.springframework.util.StopWatch;

/**
 * @author chaird
 * @create 2022-07-04 23:18
 */
public class App {
  public static void main(String[] args) throws Exception{
      StopWatch sw = new StopWatch();
      sw.start("A");
      Thread.sleep(500);
      sw.stop();
      sw.start("B");
      Thread.sleep(300);
      sw.stop();
      sw.start("C");
      Thread.sleep(200);
      sw.stop();
      System.out.println(sw.prettyPrint());
  }
}
